//
//  CTVConfig.h
//  Channltv
//
//  Created by Bruno Keymolen on 7/5/07.
//  Copyright 2007 channl.tv. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "CTVUser.h"

#define CTVCONF_USERNAME @"username"
#define CTVCONF_PASSWORD @"password"
#define CTVCONF_DOWNLOADCLIPS @"ctv_downloadclips"
#define CTVCONF_PWPROTECTUSERSELECTION @"ctv_pwuserselection"
#define CTVCONF_DOWNLOADTHUMBS @"ctv_downloadthumbs"
#define CTVCONF_USEMEDIABRIDGE @"ctv_usemediabridge"
#define CTVCONF_AUTOSYNCMIN @"ctv_autosyncmin"
#define CTVCONF_CHECKFORUPDATES @"ctv_checkforupdates"
#define CTVCONF_AUTHOR @"Bruno Keymolen"
#define CTVCONF_REMOVEOBSOLETECLIPS @"ctv_removeobsoleteclips"
#define CTVCONF_CHANNELVIEW @"ctv_channelview"
#define CTVCONF_PLAYINTRO @"ctv_playintro"


@interface CTVConfig : NSObject {
@public
	int m_versionMajor;
	int m_versionMinor;
	int m_versionRevision;
	
	
	NSString* m_CTVServer;
	NSString* m_tmpdir;
	
	NSString* m_dataCacheDir;
	NSString* m_mediaCacheDir;
	NSString* m_resourceCacheDir;
	NSString* m_autoUpdateDir;
	
	NSString* m_myChannelsCache;
	CTVUser*  m_activeUser;
	NSMutableDictionary* m_publicsettings;
	NSString* m_mediaBridgePrefix;
	
	NSMutableArray* m_dataRootURLs;
}

+(id)GetInstance;
-(void)setup;
-(NSDictionary*)publicsettings;
-(NSString*)tmpdir;

-(NSString*)dataCacheDir;
-(NSString*)mediaCacheDir;
-(NSString*)resourceCacheDir;
-(NSString*)autoUpdateDir;

-(CTVUser*)activeUser;
-(NSString*)mediaBridgePrefix;

-(NSString*)userAgent;
-(NSArray*)dataRootURLs;
-(NSString*)CTVServer;


-(int)versionMajor;
-(int)versionMinor;
-(int)versionRevision;
-(NSString*)versionString;

@end
